/* pages/cart/cart.wxss */
Page {
    background-color: #f1f1f2;
}

.scroll {
    height: 90vh;
}

.top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16rpx;
    height: 88rpx;
    box-sizing: border-box;

    .left {
        text {
            font-size: 28rpx;
            color: #484848;
            line-height: 40rpx;
            font-weight: 500;
        }
    }

    .right {

        image {
            margin-right: 8rpx;
            width: 28rpx;
            height: 28rpx;
            vertical-align: middle;
        }

        text {
            font-size: 28rpx;
            color: #484848;
            font-weight: 500;
        }
    }
}

.cart-good {
    display: flex;
    align-items: center;
    margin: 24rpx auto;
    padding: 24rpx;
    box-sizing: border-box;
    width: 718rpx;
    height: 248rpx;
    background-color: #fff;
    border-radius: 16rpx;

    .wx-checkbox-input {
        width: 32rpx!important;
        height: 32rpx!important;
        border-radius: 50%;
    }

    .wx-checkbox-input.wx-checkbox-input-checked {
        width: 32rpx!important;
        height: 32rpx!important;
        background-color: #f9231b!important;
        border: #f9231b;
        color: #fff;
    }

    .img {
        margin-left: 24rpx;
        margin-right: 28rpx;

        image {
            width: 200rpx;
            height: 200rpx;
            border-radius: 12rpx;
        }
    }

    .right {
        .top {
            font-size: 28rpx;
            color: #484848;
            font-weight: 500;
            overflow: hidden;
            text-overflow: ellipsis;
            -webkit-line-clamp: 2;
            display: -webkit-box;
            -webkit-box-orient: vertical;
        }
    }

    .bottom {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-top: 32rpx;

        .price {
            .symbol {
                font-size: 24rpx;
                color: #f03c3c;
                line-height: 48rpx;
                font-weight: 500;
            }

            .number {
                font-size: 32rpx;
                color: #f03c3c;
                font-weight: 500rpx;
            }
        }

        .right {
            display: flex;

            button::after {
                border: none;
            }

            button {
                display: flex;
                justify-content: center;
                align-items: center;
                width: 60rpx;
                height: 48rpx;
                background-color: #f2f3f5;
                font-size: 32rpx;
                font-weight: 500;
            }

            input {
                margin: 0 6rpx;
                width: 80rpx;
                height: 48rpx;
                text-align: center;
                background-color: #f2f3f5;
            }
        }
    }
}

.cart-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: absolute;
    bottom: 0;
    padding-left: 40rpx;
    padding-right: 40rpx;
    box-sizing: border-box;
    width: 750rpx;
    height: 96rpx;
    background-color: #fff;

    .wx-checkbox-input {
        width: 32rpx!important;
        height: 32rpx!important;
        border-radius: 50%;
    }

    .wx-checkbox-input.wx-checkbox-input-checked {
        width: 32rpx!important;
        height: 32rpx!important;
        background-color: #f9231b!important;
        border: #f9231b;
        color: #fff;
    }

    .left {
        text {
            margin-left: 24rpx;
            font-size: 28rpx;
            line-height: 96rpx;
            color: #303133;
            font-weight: 500;
        }
    }

    .right {
        display: flex;
        justify-content: space-between;
        align-items: center;

        .text {
            .amount {
                font-size: 28rpx;
                color: #303133;
                font-weight: 500;
            }

            .symbol {
                font-size: 24rpx;
                color: #f03c3c;
                line-height: 48rpx;
                font-weight: 500;
            }

            .number {
                font-size: 32rpx;
                color: #f03c3c;
                font-weight: 500rpx;
            }
        }

        .button {
            margin-left: 32rpx;

            button::after {
                border: none;
            }

            button {
                width: 200rpx;
                height: 72rpx;
                background-image: linear-gradient(270deg, #FF683A 0%, #F9231B 100%);
                border-radius: 36rpx;
                font-size: 28rpx;
                line-height: 72rpx;
                color: #fff;
                font-weight: 500;
            }

            .disabled {
                width: 200rpx;
                height: 72rpx;
                background-image: linear-gradient(270deg, rgba(255,104,58,0.40) 0%, rgba(249,35,27,0.40) 100%);
                border-radius: 36rpx;
                font-size: 28rpx;
                line-height: 72rpx;
                color: #fff;
                font-weight: 500;
            }
        }
    }
}

.noDetail {
    image {
        margin: 110rpx 221rpx 44rpx 221rpx;
        width: 308rpx;
        height: 200rpx;
    }

    .text {
        font-size: 30rpx;
        color: #808080;
        text-align: center;
    }
}